package com.boot.main.mapper;

import com.boot.main.entity.BcomArticle;
import com.boot.main.entity.BcomSite;
import com.boot.main.entity.BcomTag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BcomSiteMapper {
    List<BcomSite> getSites(@Param("currentSize") Integer currentSize, @Param("limit") Integer limit, @Param("cid") Long cid, @Param("username") String username);
    List<BcomSite> getSiteUser(@Param("currentSize") Integer currentSize, @Param("limit") Integer limit);
    BcomSite getSiteById(@Param("id") Long id);
    Integer getTotalCount(@Param("cid") Long cid, @Param("username") String username);
    Integer getTotalCountUser();
    Integer saveSite(BcomSite site);
    Integer updateSite(BcomSite site);
    Integer deleteSite(@Param("id") Long id);
}
